Skip to content

feat: Add /health endpoint for backend status (Fixes #29)#31

Open
abhayrajjais01 wants to merge 1 commit intoOSeMOSYS:masterfrom
abhayrajjais01:fix/issue-29-healthcheck
Open

feat: Add /health endpoint for backend status (Fixes #29)#31
abhayrajjais01 wants to merge 1 commit intoOSeMOSYS:masterfrom
abhayrajjais01:fix/issue-29-healthcheck

Conversation

@abhayrajjais01
Copy link

Description

This PR addresses Issue #29 by adding a lightweight /health endpoint to the Flask backend. This gives cloud platforms and external services a simple way to verify that the API is up and running.

What was changed

  • Added a new GET /health route in API/app.py.
  • The endpoint returns a JSON payload {"status": "ok"} with an HTTP 200 OK status code.

Verification

  • Started the Flask API locally.
  • Verified that a GET request to http://localhost:5002/health successfully returns the expected {"status": "ok"} JSON response.

Fixes #29

parthdagia05 pushed a commit to parthdagia05/MUIO that referenced this pull request Feb 25, 2026
…m fixes

- Config.py: anchor all paths to PROJECT_ROOT via __file__ (CWD-independent)
- app.py: use Config.WebAPP_PATH for template/static dirs, clean startup banner
- OsemosysClass.py: 3-tier solver resolution (env var → PATH → bundled fallback)
- SyncS3.py + UploadRoute.py: replace hardcoded backslash with os.sep
- SyncS3.py + UploadRoute.py: guard against None in S3 list_objects_v2
- CustomThreadClass.py: propagate exceptions from background threads
- Base.Class.js: use window.location.origin for API URL resolution
- Osemosys.Class.js: guard null casename in getData/getResultData
- index.html: comment out missing wijmo licence.js
- Config.py: fix EmissionActivityRatio typo ('e''t' → 'e','t')
- setup.sh: cross-platform setup script (venv, deps, GLPK/CBC via Homebrew)

Closes OSeMOSYS#3, OSeMOSYS#8, OSeMOSYS#12, OSeMOSYS#25, OSeMOSYS#34, OSeMOSYS#39, #43, #45
Supersedes PRs: OSeMOSYS#11, OSeMOSYS#13, OSeMOSYS#28, OSeMOSYS#31, OSeMOSYS#32, OSeMOSYS#35, OSeMOSYS#40, #44, #46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a simple backend health check endpoint (/health)

1 participant